<h3>Please Login</h3>

<div id='login_form'>
    <?php
        if ( $msg = flash('error')) {
            echo "<div class='flash_error'>$msg</div>";
        }
        if ( $msg = flash('notice')) {
            echo "<div class='flash_notice'>$msg</div>";
        }
    ?>
<?php echo  form_tag( 'index', array('onsubmit'=>return_fvalidate_submit())); ?>

<?php echo  hidden_field_tag('login_referrer',$login_referrer)?>

<p><b>Username:</b>
    <?php echo  text_field_tag('user_login',null, array('id'=>'user_login','alt'=>'blank','autocomplete'=>'off'))?></p>
    
<p><b>Password:</b>
    <?php echo password_field_tag('user_password',null,array('alt'=>'blank','autocomplete'=>'off'))?></p>
    
<p style='text-align:center'><?php echo submit_tag('Log In')?></p>

<?php echo  end_form_tag(); ?>

<p><?php echo  link_to('Forgot your password?',array('controller'=>'login' ,'action'=>'forgot_password')
);?></p>
</div>
